import withLogger from './component/withLogger';
import UserProfile from './component/UserProfile';
import { useState } from 'react';

function App() {

  // 提交表单信息
  const onSubmit = (data) => {
    console.log("提交表单信息", data);
  }

  const UserProfileWithLogger = withLogger(UserProfile);
  return (
    <div className="App">
      <UserProfileWithLogger submit={onSubmit} />
    </div>
  );
}

export default App;
